package facade;

/**
 * @author wcj
 * @Date 2021/6/26 21:22
 * @Version 1.0
 */
public class Facade {
    private Stock stock;
    private NationalDebt debt;
    private Estate estate;

    public Facade(Stock stock, NationalDebt debt, Estate estate) {
        this.stock = stock;
        this.debt = debt;
        this.estate = estate;
    }

    public void buy() {
        stock.buy();
        debt.buy();
        estate.buy();
    }

    public void sell() {
        stock.sell();
        debt.sell();
        estate.sell();
    }
}
